package main

import "fmt"

// 算术运算符
func main() {
	a := 10
	b := 3
	sum := a + b

	fmt.Printf("%d + %d = %d\n", a, b, sum) // 10 + 3 = 13

	sub := a - b
	fmt.Printf("%d - %d = %d\n", a, b, sub) // 10 - 3 = 7

	mul := a * b
	fmt.Printf("%d * %d = %d\n", a, b, mul) // 10 * 3 = 30

	div := a / b
	mod := a % b
	fmt.Printf("%d / %d = %d\n", a, b, div)  // 10 / 3 = 3
	fmt.Printf("%d %% %d = %d\n", a, b, mod) // 10 % 3 = 1

	c := 3
	c++
	fmt.Println(c) // 4

	c--
	fmt.Println(c) // 3
}
